package com.demo.demo;

import cn.hutool.extra.mail.MailUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2022/8/3
 */
@Service
@Slf4j
public class MailService {

    /**
     * 发送邮件
     */
    public static void main(String[] args) {

            MailUtil.send("wuhuang@vchangyi.com", "测试", "邮件来自Hutool测试", false);

    }

}
